import React from 'react';
import imgSrc from 'lib/util/ImageSource';
import Card from 'lib/components/card.jsx';

let ThumbnialTile = (props) => {
  return (
    <div className="pure-u-1-3">
      <div className="box">
        <Card>
          <div className="module-name">{ props.name }</div>
          <a href="javascript:;" onClick={ props.onClick }><img width="100%" className="thumbnail" src={ imgSrc(props.src) } /></a>
        </Card>
      </div>
    </div>
  );
};

export default ThumbnialTile;